package com.fuxi.cloud.desreport.dao;

import com.fuxi.cloud.desreport.entity.JimuReportLink;
import org.jeecgframework.minidao.annotation.Param;
import org.jeecgframework.minidao.annotation.ResultType;
import org.jeecgframework.minidao.annotation.Sql;
import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * JimuReportLinkDao
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */
@Repository
public interface JimuReportLinkDao {
    @Sql("SELECT * FROM jimu_report_link WHERE ID = :id")
    JimuReportLink get(@Param("id") String var1);

    int update(@Param("jimuReportLink") JimuReportLink var1);

    void insert(@Param("jimuReportLink") JimuReportLink var1);

    @ResultType(JimuReportLink.class)
    MiniDaoPage<JimuReportLink> getAll(@Param("jimuReportLink") JimuReportLink var1, @Param("page") int var2, @Param("rows") int var3);

    @Sql("DELETE from jimu_report_link WHERE ID = :id")
    void delete(@Param("id") String var1);

    @Sql("DELETE from jimu_report_link WHERE ID = :id")
    void deleteById(@Param("id") String var1);

    @Sql("select * from jimu_report_link where id in(:ids)")
    List<JimuReportLink> queryByIds(@Param("ids") List var1);
}

